package com.flea.hclv.service;

import com.flea.hclv.model.entity.HGuideAccount;
import com.flea.hclv.util.ServerResponse;

import java.util.Map;

public interface HGuideAccountService {
    ServerResponse<String> save(String username, String password, String phone, String email, String question, String answer)throws Exception;

    ServerResponse<HGuideAccount> findByUsernameOrPass(String model);

    ServerResponse<Map<String,String>> findQuestionByUsername(String model);

    ServerResponse<String> updatePassword(String userId, String oldPass, String newPass);

    ServerResponse<Map<String,String>> getAnswer(String username, String question);

    ServerResponse<Map<String,String>> updateResetPassword(String username, String password);
}
